import request from "@/utils/request"

// 添加运维记录
export function insertReportTypePTCZ(data) {
  return request({
    url: "/report/insertReportTypePTCZ",
    method: "post",
    data: data
  })
}

export function insertReportTypeYW(data) {
  return request({
    url: "/report/insertReportTypeYW",
    method: "post",
    data: data
  })
}

export function insertReportTypeGZTK(data) {
  return request({
    url: "/report/insertReportTypeGZTK",
    method: "post",
    data: data
  })
}

export function insertReportTypeZTXX(data) {
  return request({
    url: "/report/insertReportTypeZTXX",
    method: "post",
    data: data
  })
}

export function insertReportTypeCLXX(data) {
  return request({
    url: "/report/insertReportTypeCLXX",
    method: "post",
    data: data
  })
}

// 查看操作人
export function queryImplementAllAccount(data) {
  return request({
    url: "/report/queryReportAccountList",
    method: "get",
    params: data
  })
}

// 查询运维记录
export function queryReportRuleMainPage(data) {
  return request({
    url: "/report/queryReportRuleMainPage",
    method: "get",
    params: data
  })
}

// 查询运维记录详情
export function queryPageOpRecord(data) {
  return request({
    url: "/breport/queryPageOpRecord",
    method: "get",
    params: data
  })
}

// 删除运维记录
export function deleteReportMain(data) {
  return request({
    url: "/report/deleteReportMain",
    method: "post",
    data: data
  })
}

// 查询报表基本信息
export function queryOneRecordRule(data) {
  return request({
    url: "/report/queryReportResHeadInfo",
    method: "get",
    params: data
  })
}

// 查询设备操作记录详情
export function queryPageDeviceOperationRecord(data) {
  return request({
    url: "/breport/queryPageDeviceOperationRecord",
    method: "get",
    params: data
  })
}

// 查询设备平台操作记录详情
export function queryPageDevicePtOperationRecord(data) {
  return request({
    url: "/report/queryReportResBodyPage",
    method: "get",
    params: data
  })
}

// 查询设备状态信息记录详情
export function queryPageDeviceStatusOperationRecord(data) {
  return request({
    url: "/breport/queryPageDeviceStatusOperationRecord",
    method: "get",
    params: data
  })
}

// 查询设备故障脱口记录详情
export function queryPageDeviceGzOperationRecord(data) {
  return request({
    url: "/breport/queryPageDeviceGzOperationRecord",
    method: "get",
    params: data
  })
}

// 查询设备故障脱口记录详情中的详情
export function queryPageDeviceGzDetailOperationRecord(data) {
  return request({
    url: "/breport/queryPageDeviceGzDetailOperationRecord",
    method: "get",
    params: data
  })
}

// 查询设备测量信息记录详情中的详情
export function queryPageDeviceMeasureOperation(data) {
  return request({
    url: "/breport//queryPageDeviceMeasureOperation",
    method: "get",
    params: data
  })
}

// 导出
export function exportExcelOperationRecord(data) {
  return request({
    url: "/breport/exportExcelOperationRecord",
    method: "get",
    params: data,
    responseType: "blob"
  })
}
